package com.eamois.service.manual.impl;

import java.util.Collection;

import com.eamois.dao.manual.DiagramDao;
import com.eamois.dao.manual.impl.DiagramDaoImpl;
import com.eamois.domain.manual.Diagram;
import com.eamois.domain.manual.DiagramType;
import com.eamois.pdmutil.pdmView.DocumentView;
import com.eamois.service.impl.BaseServiceImpl;
import com.eamois.service.manual.DiagramService;
import com.mit.plm.view.documentmanage.ViewDocument;

public class DiagramServiceImpl extends BaseServiceImpl<Diagram, DiagramDao> implements DiagramService{

	@Override
	public Collection<Diagram> findDiagramByType(DiagramType type) {
		// TODO Auto-generated method stub
		return this.getDao().findDiagramByType(type);
	}

	@Override
	public Diagram findDiagramByCodeAndName(String code, String name) {
		// TODO Auto-generated method stub
		return this.getDao().findDiagramByCodeAndName(code, name);
	}

	@Override
	public DocumentView findDiagramByDocIdAndDocVer(String cdocumentid,
			String cdocumentver) {
		// TODO Auto-generated method stub
		return this.getDao().findDiagramByDocIdAndDocVer(cdocumentid, cdocumentver);
	}

	@Override
	public Diagram findDiagramByIdAndVer(String cdocumentid, String cdocumentver) {
		// TODO Auto-generated method stub
		return this.getDao().findDiagramByIdAndVer(cdocumentid, cdocumentver);
	}

	@Override
	public boolean saveDoc_026(String cdocumentid, String cdocumentver) {
		// TODO Auto-generated method stub
		return this.getDao().saveDoc_026(cdocumentid, cdocumentver);
	}
	@Override
	public boolean updateDoc_026(String cdocumentid, String cdocumentver,String originalId,String originalVer) {
		// TODO Auto-generated method stub
		return this.getDao().updateDoc_026(cdocumentid, cdocumentver,originalId,originalVer);
	}
	@Override
	public ViewDocument getDocumentByIdAndVer2(String code,String belongcode,
			String cdocumentver) {
		// TODO Auto-generated method stub
		return this.getDao().getDocumentByIdAndVer2(code,belongcode, cdocumentver);
	}

	@Override
	public Collection<Diagram> findDiagramByBom(String bomName, String bomVar) {
		// TODO Auto-generated method stub
		return this.getDao().findDiagramByBom(bomName, bomVar);
	}

	@Override
	public boolean findDiagram(String id) {
		// TODO Auto-generated method stub
		return this.getDao().findDiagram(id);
	}


}
